<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib" prefix="frame"%>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript">
     //var requestUrl="http://${basePath}:${port}${ctx}/business/projectmanage/getProjectDetail?projectId=${projectId}&r="+new Date().getTime();
var requestUrl="";
</script>
<div class="easyui-panel" data-options="border:false" style="padding: 6px">
	<div class="easyui-panel" data-options="border:true,title:'项目基本信息'" style="padding:6px;margin-bottom: 6px">
		<table class="infoTable" style="margin-top: 0px;width:100%">
			<tbody>
				<tr>
					<th align="right" width="10%">项目名称</th>
					<td width="15%">
						${project.name}
					</td>
					<th align="right" width="10%">项目编号</th>
					<td width="15%">
						${project.code}
					</td>
					<th align="right" width="10%">项目预算</th>
					<td>
						<fmt:formatNumber value="${project.budgetAmount}" type="currency" pattern="#,###.00#"/>元
					</td>
					<th align="right" width="10%">保证金金额</th>
					<td>
						<c:if test="${project.promissMoney!=null}">
							<fmt:formatNumber value="${project.promissMoney}" type="currency" pattern="#,###.00#"/>元
						</c:if>
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">委托单位</th>
					<td width="15%">
						${project.agentName}
					</td>
					<th align="right" width="10%">采购单位</th>
					<td width="15%">
						${project.buyName}
					</td>
					<th align="right" width="10%">采购单位地址</th>
					<td colspan="3">
						${project.address}
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">经办人</th>
					<td width="15%">
						${project.operater}
					</td>
					<th align="right" width="10%">联系电话</th>
					<td width="15%">
						${project.contactTel}
					</td>
					<th align="right" width="10%">QQ号</th>
					<td>
						${project.qq}
					</td>
					<th align="right" width="10%">项目类型</th>
					<td width="15%">
						${project.catagoryName}
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">采购内容</th>
					<td colspan="7">
						${project.buyContent}
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">项目状态</th>
					<td>
						${project.statusName}
					</td>
					<th align="right" width="10%">资金来源</th>
					<td width="15%">
						${project.fundFromName}
					</td>
					<th align="right" width="10%">付款方式</th>
					<td width="15%">
						${project.payType}
					</td>
					<th align="right" width="10%">创建时间</th>
					<td width="15%">
						<fmt:formatDate value="${project.createTime}" pattern="yyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">报价方式</th>
					<td colspan="7">
						<c:if test="${project.bidType=='0'}">
							金额
						</c:if>
						<c:if test="${project.bidType=='1'}">
							费率
						</c:if>
					</td>
				</tr>
				<!-- 
				<c:if test="${project.status=='16'}">
						<tr>
							<th align="right" width="10%">流标原因</th>
							<td colspan="7">
								${project.cancelReason}
							</td>
						</tr>
						<tr>
							<th align="right" width="10%">流标原因附件</th>
							<td colspan="7">
								<c:forEach items="${resList}" var="res">
								  <c:if test="${res.functionFlog==4}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${res.id}');" >${res.oldName }</a><br/>
								  </c:if>
								</c:forEach>
							</td>
						</tr>
				</c:if>-->
				<c:if test="${project.status=='24'}">
					<tr>
						<th align="right" width="10%">终止原因</th>
						<td colspan="7">
							${project.cancelReason}
						</td>
					</tr>
					<tr>
						<th align="right" width="10%">终止附件</th>
						<td colspan="7">
							<c:forEach items="${resList}" var="res">
							  <c:if test="${res.functionFlog==21}">
								<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
							  </c:if>
							</c:forEach>
						</td>
					</tr>
				</c:if>
				
				<tr>
					<th align="right" width="10%">交易申报表</th>
					<td colspan="7">
						<c:forEach items="${resList}" var="res">
						  <c:if test="${res.functionFlog==1}">
							<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);">${res.oldName }</a><br/>
						  </c:if>
						</c:forEach>
					</td>
				</tr>
				<tr>
					<c:if test="${project.catagoryName eq '工程类' }">
						<th align="right" width="10%">清单图纸等资料</th>
					</c:if>
					<c:if test="${project.catagoryName ne '工程类' }">
						<th align="right" width="10%">项目需求</th>
					</c:if>
					<td colspan="7">
						<c:forEach items="${resList}" var="res">
						  <c:if test="${res.functionFlog==2}">
							<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
						  </c:if>
						</c:forEach>
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">其他资料</th>
					<td colspan="7">
						<c:forEach items="${resList}" var="res">
						  <c:if test="${res.functionFlog==3}">
							<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
						  </c:if>
						</c:forEach>
					</td>
				</tr>
				<tr>
					<th align="right" width="10%">社会信用代码</th>
					<td colspan="3">${project.organizationCode}</td>
					<th align="right" width="10%">交货期限/工期</th>
					   
					<c:choose>
					   <c:when test="${project.catagoryName eq'工程类'}">  
					          <td colspan="3">${project.timeLimit}天</td>				         
					   </c:when>
					   <c:otherwise> 
					     <td colspan="3">${project.deliveryLimit}</td>		
					   </c:otherwise>
				    </c:choose>							
				 </tr>
				<c:if test="${ project.bankAccount!=null}">
					<c:if test="${isHitBidder }"><!-- 中标人 的投标人和其他人-->
						<tr>
							<th align="right" width="10%">户名</th>
							<td width="40%" colspan="3">
								合肥市包河区政府采购中心
							</td>
							<th align="right" width="10%">开户行</th>
							<td colspan="3" width="40%">
								光大银行四里河支行
							</td>
						</tr>
						<tr>
							<th align="right" width="10%">投标保证金虚拟子账户</th>
							<td colspan="${ project.executeBankAccount==null?'7':'3'}">
								${ project.bankAccount}
							</td>
							<c:if test="${ project.executeBankAccount!=null}">
								<th align="right" width="10%">履约保证金虚拟子账户</th>
								<td colspan="3" >
									${ project.executeBankAccount}
								</td>
							</c:if>
						</tr>
					</c:if>
					<c:if test="${!isHitBidder }"><!-- 非中标人 的投标人-->
						<tr>
							<th align="right" width="10%">户名</th>
							<td width="40%" colspan="3">
								合肥市包河区政府采购中心
							</td>
							<th align="right" width="10%">开户行</th>
							<td colspan="3" width="40%">
								光大银行四里河支行
							</td>
						</tr>
						<tr>
							<th align="right" width="10%">投标保证金虚拟子账户</th>
							<td colspan="7">
								${ project.bankAccount}
							</td>
						</tr>
					</c:if>
				</c:if>
				<c:if test="${isRevoke}">
					 <tr>
						<th align="right" width="10%">撤销原因</th>
						 <td width="40%" colspan="3">${project.cancelReason}</td>
						<td colspan="7">
							<c:forEach items="${resList}" var="res">
							  <c:if test="${res.functionFlog==900}">
								<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
							  </c:if>
							</c:forEach>
						</td>
					</tr>
				</c:if>

			</tbody>
		</table>
	</div>
	
	<!-- 项目审核信息 (审核人、采购人、管理员、监督员)  -->
	<c:if test="${isShowAudit}">
		<div class="easyui-panel" data-options="border:true,title:'项目审核信息'" style="padding:6px;margin-bottom: 6px">
				<c:forEach var="comment" items="${commentList}">
					 <table class="infoTable" style="margin-top: 6px">
							<tbody>
								<tr>
									<th align="right" width="10%">审核人</th>
									<td width="40%">
										${comment.userId}
									</td>
									<th align="right" width="10%">审核时间</th>
									<td width="15%">
										<fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss"/>
									</td>
								</tr>
								<tr>
									<th align="right" width="10%">审核意见</th>
									<td width="15%" colspan="1">
										${comment.fullMessage}
									</td>
								</tr>
							</tbody>
						</table>
				</c:forEach>
		</div>
	</c:if>
	
	<!-- 项目分配信息(审核人、采购人、管理员、监督员、受理分配人、项目负责人) -->
	<c:if test="${isShowAssign&&project.assignTime!=null}">
		<div class="easyui-panel" data-options="border:true,title:'项目分配信息'" style="padding:6px;margin-bottom: 6px">
				 <table class="infoTable" style="margin-top: 6px">
						<tbody>
							<tr>
								<th align="right" width="10%">分配人</th>
								<td width="40%">
									${project.assignName}
								</td>
								<th align="right" width="10%">分配时间</th>
								<td width="15%">
									<fmt:formatDate value="${project.assignTime}" pattern="yyy-MM-dd HH:mm:ss"/>
								</td>
							</tr>
							<tr>
								<th align="right" width="10%">项目负责人</th>
								<td width="15%" colspan="3">
									${project.manageName}
								</td>
							</tr>
						</tbody>
					</table>
		</div>
	</c:if>
	
	<!-- 项目编制信息-->
	<c:if test="${isShowCompile }">
		<div class="easyui-panel" data-options="border:true,title:'项目编制信息'" style="padding:6px;margin-bottom: 6px">
				 <table class="infoTable" style="margin-top: 6px">
						<tbody>
							<tr>
								<th align="right" width="10%">项目负责人</th>
								<td width="25%">
									${project.manageName}
								</td>
								<th align="right" width="10%">编制时间</th>
								<td width="25%">
									<fmt:formatDate value="${project.compileTime}" pattern="yyy-MM-dd HH:mm:ss"/>
								</td>
							</tr>
							<tr>
								<th align="right" width="10%">竞价文件</th>
								<td width="25%" colspan="7">
									<c:forEach items="${resList}" var="res">
									  <c:if test="${res.functionFlog==5}">
										<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/>
									  </c:if>
									</c:forEach>
								</td>
								<!-- 采购人确认补充的资料 
								<th align="right" width="10%">补充附件</th>
								<td width="25%">
									<c:forEach items="${resList}" var="res">
									  <c:if test="${res.functionFlog==6}">
										<a class="easyui-linkbutton" href="javascript:showOpenFile('${res.id}');" >${res.oldName }</a><br/>
									  </c:if>
									</c:forEach>
								</td>-->
							</tr>
							<tr>
								<th align="right" width="10%">采购需求</th>
								<td width="25%" colspan="7">
									<c:forEach items="${resList}" var="res">
									  <c:if test="${res.functionFlog==8}">
										<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
									  </c:if>
									</c:forEach>
								</td>
							</tr>
							<tr>
								<th align="right" width="10%">开标时间</th>
								<td width="25%">
									<fmt:formatDate value="${project.bidStartTime}" pattern="yyy-MM-dd HH:mm:ss"/>
								</td>
								<th align="right" width="10%">确认截止时间</th>
								<td width="25%">
									<fmt:formatDate value="${project.validTime}" pattern="yyy-MM-dd HH:mm:ss"/>
								</td>
							</tr>
						</tbody>
					</table>
		</div>
	</c:if>
	
	
	<!--编制确认信息( 审核人、采购人、项目负责人、受理分配人、管理员、监督员 )-->
	<c:if test="${isShowCompileSure}">
		<div class="easyui-panel" data-options="border:true,title:'竞价文件确认信息'" style="padding:6px;margin-bottom: 6px">
			<c:forEach var="comment" items="${buyerManagerList}" varStatus="sta">
					<c:if test="${sta.index%2==0}">
						<table class="infoTable" style="margin-top: 6px">
							<tbody>
								<tr>
									<th align="right" width="10%">确认单位：</th>
									<td width="15%">
										${project.agentName }
									</td>
									<th align="right" width="10%">确认时间：</th>
									<td width="15%">
										<fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss"/>
									</td>
								</tr>
								<tr>
									<th align="right" width="10%">确认意见：</th>
									<td width="40%">
										${comment.fullMessage }
									</td>
								</tr>
					</c:if>
					<c:if test="${sta.index%2!=0}">
							<tr>
									<th align="right" width="10%">回复内容</th>
									<td width="40%" colspan="5">
										${comment.fullMessage }
									</td>
								</tr>
							</tbody>
						</table>
					</c:if>
					<c:if test="${(sta.index+1)==buyerManagerList.size()&&sta.index%2==0}">
							</tbody>
						</table>
					</c:if>
			</c:forEach>
		</div>
	</c:if>


	<!-- 竞价公示暂停审核(审核人、采购人、项目负责人、受理分配人、管理员、监督员) -->
	<c:if test="${isShowShotPause}"><!-- isShowShotPause -->
		<div class="easyui-panel" data-options="border:true,title:'竞价公示暂停'" style="height: 260px; padding: 4px; margin-bottom: 6px">
			<c:forEach var="pp" items="${shotPauseList }">
				<table class="infoTable" style="margin-top: 6px">
					<tbody>
						<tr>
							<th align="right" width="10%">暂停申请时间</th>
							<td width="25%">
								<fmt:formatDate value="${pp.pauseTime}" pattern="yyy-MM-dd HH:mm:ss" />
							</td>
							<th align="right" width="10%">申请理由</th>
							<td width="20%">${pp.reason}</td>
						</tr>
						<tr>
							<th align="right" width="10%">批复</th>
							<td width="20%" colspan="3">${pp.replay}</td>
						</tr>
						<tr>
							<th align="right" width="10%">附件</th>
							<td width="25%" colspan="3">
								<c:forEach items="${frame:findResByBusinessId(pp.id)}" var="res">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/>
								</c:forEach>
							</td>
						</tr>
						<c:if test="${project.status==24 }">
							<tr>
								<th align="right" width="10%">撤销原因</th>
								<td width="25%" colspan="3">
									${pp.revokeReason }
								</td>
							</tr>
						</c:if>
						<c:if test="${project.status==16 }">
							<tr>
								<th align="right" width="10%">流标原因</th>
								<td width="25%" colspan="3">
									${pp.flowReason }
								</td>
							</tr>
						</c:if>
					</tbody>
				</table>
			</c:forEach>
		</div>
	</c:if>

	<!-- 投标信息 -->
	<!-- 采购人 (采购人在项目详情中仅可见中标人信息，非中标人投标信息不可见)-->
	<c:if test="${roleId eq 'buyer' }">
		<c:if test="${isShowBidList}">
			<c:if test="${!isShoter }">
				<div id="bidMessage" style="margin: 0 auto;width: 200px;"></div>
			</c:if>
			<div class="easyui-panel" data-options="border:false,title:''" style="height:260px;padding: 0px;margin-bottom: 0px">
				<table id="listProjectsBidTable" class="easyui-datagrid" 
					data-options="singleSelect:false,toolbar:'#tradestb',method:'post',rownumbers:true,fit:true,fitColumns:true,border:true,
						pagination:true,multiSort:true,remoteSort:true,striped:true,view:myview,height:300,
						url:'${ctx}/business/projectmanage/expert/expertBidList?projectId=${project.id}'">
					<thead>
						<tr>
							<th data-options="field:'bidderName',width:80,title:'投标单位',sortable:true" align="center"></th>
							<c:if test="${!isFlow}">
							<th data-options="field:'bidAmount',width:50,title:'报价金额(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
							</c:if>
							<th data-options="field:'societyCode',width:80,title:'社会信用代码',sortable:true" align="center"></th>
							<th data-options="field:'discountAmount',width:100,title:'小微企业扣除(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
							<th data-options="field:'bidTime',width:80,title:'投标时间',sortable:true,formatter: function(value,row,index){return value+'.'+row.millisecond}" align="center"></th>
							<th data-options="field:'evalutionResult',width:60,formatter: function(value,row,index){if(value==1){return '通过';}else if(value==2){return '无效标';}else if(value==3){return '无需评审';}else{{return '待评标';}}},title:'状态',sortable:true" align="center"></th>
							<th data-options="field:'operation',width:150,title:'操作',formatter:getOptionsBtn" align="center" ></th>
					</tr>
					</thead>
				</table>
			</div>
		</c:if>
		<c:if test="${bidInfo!=null }">
			<div class="easyui-panel" data-options="border:true,title:'中标信息'" style="height:120px;padding: 4px;margin-bottom: 6px">
					<table class="infoTable" style="margin-top: 6px">
						<tr>
							<th style="text-align: center;" width="10%"></th>
							<th style="text-align: center;" width="30%">单位名称</th>
							<th style="text-align: center;" width="30%">报价金额(${project.bidType==0 ?'元':'%'})</th>
							<th style="text-align: center;" width="30%">社会信用代码</th>
							<th style="text-align: center;" width="30%">小微企业扣除(${project.bidType==0 ?'元':'%'})</th>
							<th style="text-align: center;" width="30%">投标时间</th>
							<th style="text-align: center;" width="30%">投标详情</th>
						</tr>
						<tr>
							<th style="text-align: center;" width="10%">中标单位信息</th>
							<td align="center" width="30%">
								${bidInfo.bidderName }
							</td>
							<td align="center" width="30%">
								<fmt:formatNumber value="${bidInfo.bidAmount}" type="currency" pattern="#,###.00#"/>
							</td>
							<td align="center" width="30%">
								${bidInfo.societyCode }
							</td>
							<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.discountAmount}" type="currency" pattern="0.00#"/>
								</td>
							<td align="center" width="30%">
								<fmt:formatDate value="${bidInfo.bidTime}" pattern="yyy-MM-dd HH:mm:ss"/>.${bidInfo.millisecond }
							</td>
							<td align="center" width="30%">
								<a href="javascript:void(0)" onclick="getProjectBidDetail('${bidInfo.id}')" class="">详情</a>
							</td>
						</tr>
					</table>
			</div>
		</c:if>
	</c:if>
	
	<!-- 审核人(所有项目的投标信息) -->
	<c:if test="${roleId eq 'auditor' }">
		<c:if test="${isShowBidList}">
			<div class="easyui-panel" data-options="border:true,title:'投标信息'" style="height:400px;padding: 4px;margin-bottom: 6px">
				<c:if test="${isShowBidGrid}">
					<c:if test="${!isShoter }">
						<div id="bidMessage" style="margin: 0 auto;width: 200px;"></div>
					</c:if>
					<div class="easyui-panel" data-options="border:false,title:''" style="height:260px;padding: 0px;margin-bottom: 0px">
						<table id="listProjectsBidTable" class="easyui-datagrid" 
							data-options="singleSelect:false,toolbar:'#tradestb',method:'post',rownumbers:true,fit:true,fitColumns:true,border:true,
								pagination:true,multiSort:true,remoteSort:true,striped:true,view:myview,height:300,
								url:'${ctx}/business/projectmanage/expert/expertBidList?projectId=${project.id}'">
							<thead>
								<tr>
									<th data-options="field:'bidderName',width:80,title:'投标单位',sortable:true" align="center"></th>
									<c:if test="${!isFlow}">
									<th data-options="field:'bidAmount',width:50,title:'报价金额(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									</c:if>
									<th data-options="field:'societyCode',width:80,title:'社会信用代码',sortable:true" align="center"></th>
									<th data-options="field:'discountAmount',width:100,title:'小微企业扣除(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									<th data-options="field:'bidTime',width:80,title:'投标时间',sortable:true,formatter: function(value,row,index){return value+'.'+row.millisecond}" align="center"></th>
									<th data-options="field:'evalutionResult',width:60,formatter: function(value,row,index){if(value==1){return '通过';}else if(value==2){return '无效标';}else if(value==3){return '无需评审';}else{{return '待评标';}}},title:'状态',sortable:true" align="center"></th>
									<th data-options="field:'operation',width:150,title:'操作',formatter:getOptionsBtn" align="center" ></th>
							</tr>
							</thead>
						</table>
					</div>
				</c:if>
			<div>
					<c:if test="${bidInfo!=null }">
						<table class="infoTable" style="margin-top: 6px">
							<tr>
								<th style="text-align: center;" width="10%"></th>
								<th style="text-align: center;" width="30%">单位名称</th>
								<th style="text-align: center;" width="30%">报价金额(${project.bidType==0 ?'元':'%'})</th>
								<th style="text-align: center;" width="30%">社会信用代码</th>
								<th style="text-align: center;" width="30%">小微企业扣除(${project.bidType==0 ?'元':'%'})</th>
								<th style="text-align: center;" width="30%">投标时间</th>
							</tr>
							<tr>
								<th style="text-align: center;" width="10%">中标单位信息</th>
								<td align="center" width="30%">
									${bidInfo.bidderName }
								</td>
								<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.bidAmount}" type="currency" pattern="#,###.00#"/>
								</td>
								<td align="center" width="30%">
								${bidInfo.societyCode }
							    </td>
								<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.discountAmount}" type="currency" pattern="0.00#"/>
								</td>
								<td align="center" width="30%">
									<fmt:formatDate value="${bidInfo.bidTime}" pattern="yyy-MM-dd HH:mm:ss"/>.${bidInfo.millisecond }
								</td>
							</tr>
						</table>
					</c:if>
				</div>
			</div>
		</c:if>
	</c:if>
	
	<!-- 受理分配人(不可见投标信息) -->
	<c:if test="${roleId eq 'system' }">
		
	</c:if>
	
	<!-- 项目负责人(可见所有投标信息) -->
	<c:if test="${roleId eq 'manager' }">
		<c:if test="${isShowBidList}">
			<div class="easyui-panel" data-options="border:true,title:'投标信息'" style="height:500px;padding: 4px;margin-bottom: 6px">
				<c:if test="${isShowBidGrid}">
					<c:if test="${!isShoter }">
						<div id="bidMessage" style="margin: 0 auto;width: 200px;"></div>
					</c:if>
					<div class="easyui-panel" data-options="border:false,title:''" style="height:260px;padding: 0px;margin-bottom: 6px">
						<table id="listProjectsBidTable" class="easyui-datagrid" 
							data-options="singleSelect:false,toolbar:'#tradestb',method:'post',rownumbers:true,fit:true,fitColumns:true,border:true,
								pagination:true,multiSort:true,remoteSort:true,striped:true,view:myview,height:300,
								url:'${ctx}/business/projectmanage/expert/expertBidList?projectId=${project.id}'">
							<thead>
								<tr>
									<th data-options="field:'bidderName',width:80,title:'投标单位',sortable:true" align="center"></th>
									<c:if test="${!isFlow}">
									<th data-options="field:'bidAmount',width:50,title:'报价金额(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									</c:if>
									<th data-options="field:'societyCode',width:80,title:'社会信用代码',sortable:true" align="center"></th>
									<th data-options="field:'discountAmount',width:100,title:'小微企业扣除(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									<th data-options="field:'bidTime',width:80,title:'投标时间',sortable:true,formatter: function(value,row,index){return value+'.'+row.millisecond}" align="center"></th>
									<th data-options="field:'evalutionResult',width:60,formatter: function(value,row,index){if(value==1){return '通过';}else if(value==2){return '无效标';}else if(value==3){return '无需评审';}else{{return '待评标';}}},title:'状态',sortable:true" align="center"></th>
									<th data-options="field:'operation',width:150,title:'操作',formatter:getOptionsBtn" align="center" ></th>
							</tr>
							</thead>
						</table>
					</div>
				</c:if>
				<div>
					<c:if test="${bidInfo!=null }">
						<table class="infoTable" style="margin-top: 6px;margin-bottom: 6px">
							<tr>
								<th style="text-align: center;" width="10%"></th>
								<th style="text-align: center;" width="30%">单位名称</th>
								<th style="text-align: center;" width="30%">报价金额(${project.bidType==0 ?'元':'%'})</th>
								<th style="text-align: center;" width="30%">社会信用代码</th>
								<th style="text-align: center;" width="30%">小微企业扣除(${project.bidType==0 ?'元':'%'})</th>
								<th style="text-align: center;" width="30%">投标时间</th>
							</tr>
							<tr>
								<th style="text-align: center;" width="10%">中标单位信息</th>
								<td align="center" width="30%">
									${bidInfo.bidderName }
								</td>
								<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.bidAmount}" type="currency" pattern="#,###.00#"/>
								</td>
								<td align="center" width="30%">
								${bidInfo.societyCode }
							    </td>
								<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.discountAmount}" type="currency" pattern="0.00#"/>
								</td>
								<td align="center" width="30%">
									<fmt:formatDate value="${bidInfo.bidTime}" pattern="yyy-MM-dd HH:mm:ss"/>.${bidInfo.millisecond }
								</td>
							</tr>
						</table>
					</c:if>
				</div>
				
				
				<!-- 中标人履约保证金信息 -->
				<div class="easyui-panel" data-options="border:true,title:'履约保证金信息'" style="height:120px;padding: 4px;">
					<c:if test="${bidBondInfo!=null }">
							<table class="infoTable" style="margin-top: 6px">
								<tr>
									<th style="text-align: center;" width="30%">单位名称</th>
									<th style="text-align: center;" width="30%">履约保证金金额</th>
									<th style="text-align: center;" width="30%">履约保证金缴纳时间</th>
								</tr>
								<tr>
									<td align="center" width="30%">
										${bidBondInfo.pk.companyName }
									</td>
									<td align="center" width="30%">
										<fmt:formatNumber value="${bidBondInfo.tnAmount}" type="currency" pattern="#,###.00#"/>
									</td>
									<td align="center" width="30%">
										<fmt:formatDate value="${bidBondInfo.transTime}" pattern="yyy-MM-dd HH:mm:ss"/>
									</td>
								</tr>
							</table>
					</c:if>
					<c:if test="${bidBondInfo==null }">
						<font color="red"><strong>履约保证金尚未缴纳</strong></font>
					</c:if>
				</div>
				
				
				
			</div>
		</c:if>
	</c:if>
	
	<!-- 投标人(仅可见自己的投标信息，其他投标人信息不可见) -->
	<c:if test="${roleId eq 'bidder' }">
		<c:if test="${isShowBidList}">
			<div class="easyui-panel" data-options="border:true,title:'投标信息'" style="height:400px;padding: 4px;margin-bottom: 6px">
				<c:if test="${isShowBidGrid}">
					<c:if test="${!isShoter }">
						<div id="bidMessage" style="margin: 0 auto;width: 200px;"></div>
					</c:if>
					<div class="easyui-panel" data-options="border:false,title:''" style="height:260px;padding: 0px;margin-bottom: 0px">
						<table id="listProjectsBidTable" class="easyui-datagrid" 
							data-options="singleSelect:false,toolbar:'#tradestb',method:'post',rownumbers:true,fit:true,fitColumns:true,border:true,
								pagination:true,multiSort:true,remoteSort:true,striped:true,view:myview,height:300,
								url:'${ctx}/business/projectmanage/expert/expertBidList?projectId=${project.id}'">
							<thead>
								<tr>
									<th data-options="field:'bidderName',width:80,title:'投标单位',sortable:true" align="center"></th>
									<c:if test="${!isFlow}">
									<th data-options="field:'bidAmount',width:50,title:'报价金额(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									</c:if>
									<th data-options="field:'discountAmount',width:100,title:'小微企业扣除(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									<th data-options="field:'bidTime',width:80,title:'投标时间',sortable:true,formatter: function(value,row,index){return value+'.'+row.millisecond}" align="center"></th>
									<th data-options="field:'evalutionResult',width:60,formatter: function(value,row,index){if(value==1){return '通过';}else if(value==2){return '无效标';}else if(value==3){return '无需评审';}else{{return '待评标';}}},title:'状态',sortable:true" align="center"></th>
									<th data-options="field:'operation',width:150,title:'操作',formatter:getOptionsBtn" align="center" ></th>
							</tr>
							</thead>
						</table>
					</div>
				</c:if>
			</div>
		</c:if>
	</c:if>
	
	<!-- 系统管理员(不可见投标信息) -->
	<c:if test="${roleId eq 'administrator' }">
		
	</c:if>
	
	<!-- 监督人(不可见投标信息) -->
	<c:if test="${roleId eq 'supervisor' }">
		
	</c:if>
	
	<!-- 业务管理员(可见投标信息) -->
	<c:if test="${roleId eq 'bizmanager' }">
		<c:if test="${isShowBidList}">
			<div class="easyui-panel" data-options="border:true,title:'投标信息'" style="height:400px;padding: 4px;margin-bottom: 6px">
				<c:if test="${isShowBidGrid}">
					<c:if test="${!isShoter }">
						<div id="bidMessage" style="margin: 0 auto;width: 200px;"></div>
					</c:if>
					<div class="easyui-panel" data-options="border:false,title:''" style="height:260px;padding: 0px;margin-bottom: 0px">
						<table id="listProjectsBidTable" class="easyui-datagrid" 
							data-options="singleSelect:false,toolbar:'#tradestb',method:'post',rownumbers:true,fit:true,fitColumns:true,border:true,
								pagination:true,multiSort:true,remoteSort:true,striped:true,view:myview,height:300,
								url:'${ctx}/business/projectmanage/expert/expertBidList?projectId=${project.id}'">
							<thead>
								<tr>
									<th data-options="field:'bidderName',width:80,title:'投标单位',sortable:true" align="center"></th>
									<c:if test="${!isFlow}">
									<th data-options="field:'bidAmount',width:50,title:'报价金额(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									</c:if>
									<th data-options="field:'discountAmount',width:100,title:'小微企业扣除(${project.bidType==0 ?'元':'%'})',sortable:true" align="center"></th>
									<th data-options="field:'bidTime',width:80,title:'投标时间',sortable:true,formatter: function(value,row,index){return value+'.'+row.millisecond}" align="center"></th>
									<th data-options="field:'evalutionResult',width:60,formatter: function(value,row,index){if(value==1){return '通过';}else if(value==2){return '无效标';}else if(value==3){return '无需评审';}else{{return '待评标';}}},title:'状态',sortable:true" align="center"></th>
									<th data-options="field:'operation',width:150,title:'操作',formatter:getOptionsBtn" align="center" ></th>
							</tr>
							</thead>
						</table>
					</div>
				</c:if>
				<div>
					<c:if test="${bidInfo!=null }">
						<table class="infoTable" style="margin-top: 6px">
							<tr>
								<th style="text-align: center;" width="10%"></th>
								<th style="text-align: center;" width="30%">单位名称</th>
								<th style="text-align: center;" width="30%">报价金额(${project.bidType==0 ?'元':'%'})</th>
								<th style="text-align: center;" width="30%">小微企业扣除(${project.bidType==0 ?'元':'%'})</th>
								<th style="text-align: center;" width="30%">投标时间</th>
							</tr>
							<tr>
								<th style="text-align: center;" width="10%">中标单位信息</th>
								<td align="center" width="30%">
									${bidInfo.bidderName }
								</td>
								<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.bidAmount}" type="currency" pattern="#,###.00#"/>
								</td>
								<td align="center" width="30%">
									<fmt:formatNumber value="${bidInfo.discountAmount}" type="currency" pattern="0.00#"/>
								</td>
								<td align="center" width="30%">
									<fmt:formatDate value="${bidInfo.bidTime}" pattern="yyy-MM-dd HH:mm:ss"/>.${bidInfo.millisecond }
								</td>
							</tr>
						</table>
					</c:if>
				</div>
			</div>
		</c:if>
	</c:if>
	
	<!-- 消息管理员(不可见投标信息) -->
	<c:if test="${roleId eq 'messager' }">
		
	</c:if>
	
	<!-- 财务管理员(不可见投标信息) -->
	<c:if test="${roleId eq 'finance' }">
		
	</c:if>
	
	
	

	
	
	<!-- 评标[专家信息](审核人、采购人、项目负责人、受理分配人、管理员、监督员) -->
	<c:if test="${isShowQuestionAndBidInfo}">
		<div class="easyui-panel" data-options="border:true,title:'专家信息'" style="height:160px;padding: 4px;margin-bottom: 6px">
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
				<c:forEach var="professor" items="${professorList}" varStatus="sta">
					<c:if test="${sta.index%3==0}">
						<c:if test="${sta.index!=0}">
							</tr>
						</c:if>
						<tr>
							<th align="right" width="10%">专家</th>
							<td width="25%"  ${(sta.index+1)==professorList.size()?"colspan='5'":""}>
								${professor.name}
							</td>
					</c:if>
					
					<c:if test="${sta.index%3!=0}">
						<th align="right" width="10%">专家</th>
						<td width="25%"  ${(sta.index+1)==professorList.size()?"colspan='5'":""}>
							${professor.name}
						</td>
					</c:if>
					<c:if test="${sta.index+1==professorList.size()}">
						</tr>
					</c:if>
				</c:forEach>
				</tbody>
			</table>
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
				<c:forEach var="professor" items="${ownerList}" varStatus="sta">
					<c:if test="${sta.index%3==0}">
						<c:if test="${sta.index!=0}">
							</tr>
						</c:if>
						<tr>
							<th align="right" width="10%">业主</th>
							<td width="25%"  ${(sta.index+1)==ownerList.size()?"colspan='5'":""}>
								${professor.name}
							</td>
					</c:if>
					
					<c:if test="${sta.index%3!=0}">
						<th align="right" width="10%">业主</th>
						<td width="25%"  ${(sta.index+1)==ownerList.size()?"colspan='5'":""}>
							${professor.name}
						</td>
					</c:if>
					<c:if test="${sta.index+1==ownerList.size()}">
						</tr>
					</c:if>
				</c:forEach>
				</tbody>
			</table>
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
				<c:forEach var="professor" items="${supervisorList}" varStatus="sta">
					<c:if test="${sta.index%3==0}">
						<c:if test="${sta.index!=0}">
							</tr>
						</c:if>
						<tr>
							<th align="right" width="10%">监督员</th>
							<td width="25%"  ${(sta.index+1)==supervisorList.size()?"colspan='5'":""}>
								${professor.name}
							</td>
					</c:if>
					
					<c:if test="${sta.index%3!=0}">
						<th align="right" width="10%">监督员</th>
						<td width="25%"  ${(sta.index+1)==supervisorList.size()?"colspan='5'":""}>
							${professor.name}
						</td>
					</c:if>
					<c:if test="${sta.index+1==supervisorList.size()}">
						</tr>
					</c:if>
				</c:forEach>
				</tbody>
			</table>
		</div>
	</c:if>
	
	<!-- 公示信息 -->
	<c:if test="${isShowPublicityInfo}">
		<div class="easyui-panel" data-options="border:true,title:'公示信息'" style="height:140px;padding: 4px;margin-bottom: 6px">
		<table class="infoTable" style="margin-top: 6px">
				<tbody>
					<tr>
						<c:if test="${project.evaluteEndTime!=null }">
							<th align="right" width="10%">评标结束时间</th>
							<td width="25%">
								<fmt:formatDate value="${project.evaluteEndTime}" pattern="yyy-MM-dd HH:mm:ss"/>
							</td>
						</c:if>
						<c:if test="${project.showEndTime!=null&&project.winningId!=null }">
							<th align="right" width="10%">中标公示期限</th>
							<td width="20%">
								<fmt:formatDate value="${project.showEndTime}" pattern="yyy-MM-dd HH:mm:ss"/>
							</td>
						</c:if>
					</tr>
					<tr>
						<c:if test="${project.contactBeginTime!=null }">
							<th align="right" width="10%">合同公示时间</th>
							<td width="25%">
									<fmt:formatDate value="${project.contactBeginTime}" pattern="yyy-MM-dd"/>
									至 <fmt:formatDate value="${project.contactEndTime}" pattern="yyy-MM-dd"/>
							</td>
						</c:if>
						<c:if test="${project.receivingStratTime!=null }">
							<th align="right" width="10%">验收公示时间</th>
							<td width="25%">
								<fmt:formatDate value="${project.receivingStratTime}" pattern="yyy-MM-dd"/>
								至 <fmt:formatDate value="${project.receivingEndTime}" pattern="yyy-MM-dd"/>
							</td>
						</c:if>
						<c:if test="${project.flowShowStartTime!=null }">
							<th align="right" width="10%">流标公示时间</th>
							<td width="25%">
								<fmt:formatDate value="${project.flowShowStartTime}" pattern="yyy-MM-dd"/>
								至 <fmt:formatDate value="${project.flowShowEndTime}" pattern="yyy-MM-dd"/>
							</td>
						</c:if>
					</tr>
				</tbody>
			</table>
		</div>
	</c:if>
	
	<!-- 中标公示暂停审核(审核人、采购人、项目负责人、受理分配人、管理员、监督员) -->
	<c:if test="${isShowBidPause}">
		<div class="easyui-panel" data-options="border:true,title:'中标公示暂停'" style="height: 260px; padding: 4px; margin-bottom: 6px">
			<c:forEach var="pp" items="${bidPauseList }">
				<table class="infoTable" style="margin-top: 6px">
					<tbody>
						<tr>
							<th align="right" width="10%">暂停申请时间</th>
							<td width="25%">
								<fmt:formatDate value="${pp.pauseTime}" pattern="yyy-MM-dd HH:mm:ss" />
							</td>
							<th align="right" width="10%">申请理由</th>
							<td width="20%">${pp.reason}</td>
						</tr>
						<tr>
							<th align="right" width="10%">批复</th>
							<td width="20%" colspan="3">${pp.replay}</td>
						</tr>
						<tr>
							<th align="right" width="10%">附件</th>
							<td width="25%" colspan="3">
								<c:forEach items="${frame:findResByBusinessId(pp.id)}" var="res">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/> <br />
								</c:forEach>
							</td>
						</tr>
						<c:if test="${project.status==24 }">
							<tr>
								<th align="right" width="10%">撤销原因</th>
								<td width="25%" colspan="3">
									${pp.revokeReason }
								</td>
							</tr>
						</c:if>
						<c:if test="${project.status==16 }">
							<tr>
								<th align="right" width="10%">流标原因</th>
								<td width="25%" colspan="3">
									${pp.flowReason }
								</td>
							</tr>
						</c:if>
					</tbody>
				</table>
			</c:forEach>

		</div>
	</c:if>
	
	
	<!-- 中标公示暂停 变更中标人 bidderChangeList-->
	<c:if test="${bidderChangeList!=null&&bidderChangeList.size()>0 }">
	<div class="easyui-panel" data-options="border:true,title:'中标公示暂停变更中标人信息'" style="height:260px;padding: 4px;margin-bottom: 6px">
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
					<tr>
						<td align="center" width="20%">新中标人</td>
						<td align="center" width="35%">变更原因</td>
						<td align="center" width="20%">附件资源</td>
						<td align="center" width="10%">操作人</td>
						<td align="center" width="10%">变更时间</td>
					</tr>
					<c:forEach var="bidder" items="${bidderChangeList}" varStatus="sta">
					<tr  style="margin:2px 0;">
						<td align="center" width="20%">${bidder.newBidderName }</td>
						<td align="center" width="35%">${bidder.changeReason }</td>
						<td align="center" width="20%">
							<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${bidder.resourceId  }','${requestUrl }');" >${bidder.resourceName  }</a><br/> <br />
						</td>
						<td align="center" width="10%">${bidder.operateName }</td>
						<td align="center" width="15%">
							<fmt:formatDate value="${bidder.updateTime }" pattern="yyy-MM-dd HH:mm:ss" />
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
	</div>
	</c:if>
	
	<!-- 合同审核(审核人、采购人、项目负责人、受理分配人、管理员、监督员、中标人) -->
	<c:if test="${isShowContractAudit}">
		<div class="easyui-panel" data-options="border:true,title:'合同审核信息'" style="height:260px;padding: 4px;margin-bottom: 6px">
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
					<tr>
						<th align="right" width="10%">上传人</th>
						<td width="40%">
							${project.contactUpUserName }
						</td>
						<th align="right" width="10%">上传时间</th>
						<td width="40%">
							${project.contactUpTime }
						</td>
					</tr>
					<tr>
						<th align="right" width="10%">合同附件</th>
						<td width="40%" colspan="3">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==7}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/><br/>
								 </c:if>
							</c:forEach>
						</td>
					</tr>
				</tbody>
			</table>
		
			<c:forEach var="comment" items="${contractAuditList}" varStatus="sta">
				<table class="infoTable" style="margin-top: 6px">
					<tbody>
						<tr>
							<th align="right" width="10%">审核时间</th>
							<td width="25%" colspan="3">
								<fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss"/>
							</td>
						</tr>
						<tr  style="margin:2px 0;">
							<th align="right" width="10%">审核意见</th>
							<td width="55%">
								${comment.fullMessage }
							</td>
						</tr>
					</tbody>
				</table>
			</c:forEach>
		</div>
	</c:if>
	
	<!-- 验收报告审核(审核人、采购人、项目负责人、受理分配人、管理员、监督员、中标人) -->
	<c:if test="${isShowReceivingtAudit}">
		<div class="easyui-panel" data-options="border:true,title:'验收报告审核信息'" style="height:260px;padding: 4px;margin-bottom: 6px">
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
					<tr>
						<th align="right" width="10%">上传人</th>
						<td width="40%">
							${project.auditReportUpUserName }
						</td>
						<th align="right" width="10%">上传时间</th>
						<td width="40%">
							<fmt:formatDate value="${project.auditReportUpTime }" pattern="yyy-MM-dd HH:mm:ss"/>
						</td>
					</tr>
					<tr>
						<th align="right" width="10%">验收报告附件</th>
						<td width="40%" colspan="3">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==20}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
								 </c:if>
							</c:forEach>
						</td>
					</tr>
				</tbody>
			</table>

					<c:forEach var="comment" items="${receivingAuditList}" varStatus="sta">
						<table class="infoTable" style="margin-top: 6px">
							<tbody>
								<tr>
									<th align="right" width="10%">审核时间</th>
									<td width="25%" colspan="3">
										<fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss" />
									</td>
								</tr>
								<tr>
									<th align="right" width="10%">审核意见</th>
									<td width="75%">${comment.fullMessage }</td>
								</tr>
							</tbody>
						</table>
					</c:forEach>
				
		</div>
	</c:if>
	
	
	<!-- 质疑投诉答复处理结果(审核人、采购人、项目负责人、受理分配人、管理员、监督员) -->
	<c:if test="${isShowOppugn}">
		<div class="easyui-panel" data-options="border:true,title:'质疑投诉答复处理结果'" style="height:250px;padding: 4px;margin-bottom: 6px">
			<table id="listShowOppugn" class="easyui-datagrid" 
				data-options="singleSelect:false,toolbar:'#tradestb',method:'post',rownumbers:true,fit:true,fitColumns:true,border:true,
					pagination:true,multiSort:true,remoteSort:true,striped:true,height:300,
					url:'${ctx}/business/webcontent/oppugnList?projectId=${project.id}&&noEditPubType=true'">
				<thead>
					<tr>
						<th data-options="field:'typeName',width:80,title:'类型',sortable:true" align="center"></th>
						<th data-options="field:'title',width:150,title:'标题',sortable:true" align="center"></th>
						<th data-options="field:'createTime',width:80,title:'时间',sortable:true" align="center"></th>
						<th data-options="field:'operation',width:50,title:'操作',formatter:function(value, row, index){return '<a href=\'${ctx }/web/getWebDetail?id='+row.id+'\' target=\'_blank\'>详情</a>'}" align="center" ></th>
					</tr>
				</thead>
			</table>
		</div>
	</c:if>
	
	<!-- 相关附件(审核人、采购人、项目负责人、受理分配人、管理员、监督员) -->
	<c:if test="${isShowAnnexes}">
		<div class="easyui-panel" data-options="border:true,title:'相关附件'" style="height:260px;padding: 4px;margin-bottom: 6px">
			<table class="infoTable" style="margin-top: 6px">
				<tbody>
					<%-- <tr>
						<th align="right" width="25%">专家监督人员劳务支出表</th>
						<td width="75%">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==10}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${res.id}');" >${res.oldName }</a><br/>
								 </c:if>
							</c:forEach>
						</td>
					</tr> --%>
					<tr>
						<th align="right" width="25%">评审纪要</th>
						<td width="75%">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==11}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>

								 </c:if>
							</c:forEach>
						</td>
					</tr>
					<tr>
						<th align="right" width="25%">评审表</th>
						<td width="75%">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==12}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>

								 </c:if>
							</c:forEach>
						</td>
					</tr>
					<tr>
						<th align="right" width="25%">专家监督员签到表</th>
						<td width="75%">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==13}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
								 </c:if>
							</c:forEach>
						</td>
					</tr>
					<tr>
						<th align="right" width="25%">询标函</th>
						<td width="75%">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==14}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
								 </c:if>
							</c:forEach>
						</td>
					</tr>
					<tr>
						<th align="right" width="25%">投标文件提交登记表</th>
						<td width="75%">
							<c:forEach items="${resList}" var="res">
								 <c:if test="${res.functionFlog==15}">
									<a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
								 </c:if>
							</c:forEach>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</c:if>
	
	
	
</div>
<script type="text/javascript">
	/**
	 * 操作按钮处理
	 * @param {Object} value
	 * @param {Object} row
	 * @param {Object} index
	 */
	function getOptionsBtn(value, row, index){
		var btnsHtml = "<span class='optionBtnsArea'>";
		var infoViewHtml = '<a href="javascript:void(0)" onclick="getProjectBidDetail(\'' + row.id + '\')" class="">详情</a>&nbsp;';
		//var isFlow="${isFlow}";
		if("${isFlow}"=="false"){
			btnsHtml+=infoViewHtml; 
		}
		
		return btnsHtml +"</span>";
	}

	 
	 
	 
	 
	 	/**
		*投标详情
		*/
		function getProjectBidDetail(id){
			top.$('#secondtLevelDialog').dialog({    
			    title:"投标详情",  
			    iconCls:'icon-view',
			    width: 900,    
			    height: 560,    
			    closed: false,    
			    inline : true,
			    cache: false,    
			    href: "${ctx}/business/projectmanage/getBidDetail?id=" + id,
			    modal: true,
				extractor : function(data){
					if($.trim(data) == "unLogin"){
						var msn = ''||i18n[''];
						msn = msn||i18n[data];
						if(msn != undefined){
							top.$.messager.alert('提示',msn,'info',function(){top.location='ctx/manage';});
							return '';
						}
					}
					return data;
				},
			    buttons : [{
						text:'取消',
						iconCls:'icon-cancel',
						handler:function(){
							top.$('#secondtLevelDialog').dialog('close');
						}}]
			});
			top.$('#secondtLevelDialog').dialog("center");
		}
	 	
	 	/**
	 	*datagirl无数据是显示
	 	*/
		var myview = $.extend({},$.fn.datagrid.defaults.view,{
			onAfterRender:function(target){
				$.fn.datagrid.defaults.view.onAfterRender.call(this,target);
				var opts = $(target).datagrid('options');
				var vc = $(target).datagrid('getPanel').children('div.datagrid-view');
				vc.children('div.datagrid-empty').remove();
				//alert(JSON.stringify($(target).datagrid('getRows')));
				var status="${project.status}"//$("#")
				var isBidder="${isBidder}";
				//alert(isBidder);
				//alert(isBidder=="true");
				//alert(status);
				if (!$(target).datagrid('getRows').length&&status!=7){//无人投标
					//$("#bidMessage").html("<strong>无投标信息</strong>");
					//$("#bidMessage").css("padding","10px");
					var d = $('<div class="datagrid-empty"></div>').html('<strong>无投标信息</strong>').appendTo(vc);
					d.css({
						position:'absolute',
						left:0,
						top:50,
						width:'100%',
						textAlign:'center'
					});
				}
				//计算有效标
				var count=0;
				for (var i = 0; i < $(target).datagrid('getRows').length; i++) {
					if($(target).datagrid('getRows')[i].evalutionResult==1){//有效标
						count++;
					}
				}
				if ($(target).datagrid('getRows').length>0&&count<3&&status!=7&&status!=8&&status!=51&&status!=29&&status!=30&&status!=24&&isBidder=="true"){//有效标或投标数不足三家流标
					$("#bidMessage").html("<strong>有效标不足三家</strong>");
					$("#bidMessage").css("padding","10px");
				}
			}
			});
	</script>